package com.coderly.onlinegallerysharingplatform.model.dao.mapper;

import com.coderly.onlinegallerysharingplatform.model.dao.entity.PictureDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.coderly.onlinegallerysharingplatform.model.dto.resp.pic.PictureUploadCountDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
* @author 26788
* @description 针对表【t_picture(图片表)】的数据库操作Mapper
* @createDate 2025-03-07 11:27:18
* @Entity com.coderly.onlinegallerysharingplatform.model.dao.entity.PictureDO
*/
@Mapper
public interface PictureMapper extends BaseMapper<PictureDO> {

    /**
     * 获取一年内图片上传数目
     * @param loginUserId
     * @param startDate
     * @param endDate
     * @return
     */
    List<PictureUploadCountDTO> selectDatePictureUploadCount(
            @Param("loginUserId") Long loginUserId,
            @Param("startDate") LocalDate startDate,
            @Param("endDate") LocalDate endDate);
}




